package com.example.springboot.bean;

import java.io.Serializable;

public class User implements Serializable{
   private static final long serialVersionUID = 1L;
   private int id ;
   private long phone;
   private String email;
   private String username ;
   private String password;
	/**
	 * 状态：0代表未激活，1代表激活
	 */
	private Integer status;
	/**
	 * 利用UUID生成一段数字，发动到用户邮箱，当用户点击链接时
	 * 在做一个校验如果用户传来的code跟我们发生的code一致，更改状态为“1”来激活用户
	 */
	private String code;


	public User(int id, String loginName, String username, String password, String sex, String image) {
		super();
		this.id = id;
		this.phone=phone;
		this.email=email;
		this.username = username;
		this.password = password;

	}

	public User() {

   }

	public int getId() {
	return id;
}

	public void setId(int id) {
	this.id = id;
}

	public long getPhone() {
		return phone;
	}

	public void setPhone(long phone) {
		this.phone = phone;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUsername() {
	return username;
}

	public void setUsername(String username) {
	this.username = username;
}

	public String getPassword() {
	return password;
}

	public void setPassword(String password) {
	this.password = password;
}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				",phone='" + phone + '\'' +
				", email='" + email + '\'' +
				", status=" + status +
				", code='" + code + '\'' +
				'}';
	}
   
}
